﻿<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" CodeBehind="IntroduceNutrition.aspx.cs"
    Inherits="Catering.Catering_Page.ShanShiFenXi.IntroduceNutrition" %>

<%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls" TagPrefix="FTB" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript" src="../../Style/zhezhao.js"></script>
    <script src="../../Style/xxk.js" type="text/javascript"></script>
    <link rel="stylesheet" type="text/css" href="../../Style/head.css" />
    <link rel="stylesheet" type="text/css" href="../../Style/center.css" />
    <link rel="stylesheet" type="text/css" href="../../Style/zhezhao.css" />
    <script src="../../Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <script type="text/javascript" src="../../Scripts/js_bianjiqi/xheditor-1.1.14-zh-cn.min.js"></script>
    <style type="text/css">
        .soso_lt
        {
            padding: 5px 0;
        }
        .soso_lt a
        {
            margin-left: 3px;
        }
        .div_txtcontent
        {
            /*width: 786px;*/
            height: 400px;
            border-top: 1px dashed #ABC2E4;
            border-bottom: 1px dashed #ABC2E4;
            overflow-y: auto;
            white-space: normal;
            word-break: break-all;
            padding: 6px;
            margin:0px;
            clear:both;
            scrollbar-face-color: #FFFFFF; 
            scrollbar-shadow-color: #FFFFFF; 
            scrollbar-highlight-color: #FFFFFF; 
            scrollbar-3dlight-color: #ABC2E4; 
            scrollbar-darkshadow-color: #ABC2E4; 
            scrollbar-track-color: #E8EEF8; 
            scrollbar-arrow-color: #E8EEF8;
            background-image:url(../../Images/intro_bg.jpg);
            background-repeat:no-repeat;
            background-position:400px 120px;
            background-attachment:fixed;
        }
        .intro_title{ font-size:14px; line-height:37px; padding:0px 10px; height:37px; font-weight:bold;}
    </style>
    <script type="text/javascript">     
        function InitXhEditor() {
            $('#txtContent').xheditor({
                tools: 'Fontface,FontSize,Bold,Italic,Underline,Strikethrough,FontColor,BackColor,SelectAll,Removeformat,Align,List,Outdent,Indent,Link,Unlink,Img,Preview,Print,Fullscreen',
                skin: 'vista',
                showBlocktag: true,
                internalScript: false,
                internalStyle: false,
                width: 700,
                height: 200,
                fullscreen: false,
                sourceMode: false,
                forcePtag: false,
                upImgUrl: "upload.aspx?immediate=1&FileDir=../../UpFile",
                upImgExt: "jpg,jpeg,gif,png"
            });
        }
        function IntroEdit() {
            InitXhEditor();
            if (document.getElementById("txt_div_Title") && document.getElementById("txtTitle")) document.getElementById("txt_div_Title").value = document.getElementById("txtTitle").innerText;
            $('#txtContent').val(document.getElementById("div_content").innerHTML);
            if (document.getElementById("lblMes")) document.getElementById("lblMes").innerText = "";
            if (document.getElementById("HD_ReadID") && document.getElementById("HD_Edit")) document.getElementById("HD_Edit").value=document.getElementById("HD_ReadID").value;
            divshow("div_bg", "div_main");
        }

        function AddNew() {
            InitXhEditor();
            if (document.getElementById("HD_Edit")) document.getElementById("HD_Edit").value = "";
            if (document.getElementById("txt_div_Title")) document.getElementById("txt_div_Title").value = "";
            $('#txtContent').val("");
            if (document.getElementById("lblMes")) document.getElementById("lblMes").innerText = "";
            divshow("div_bg", "div_main");
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div class="xxk_button1">
        <ul>
            <li id="li2_1" class="li_over"><a href="IntroduceNutrition.aspx">&nbsp;&nbsp;营养介绍</a></li></ul>
    </div>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div class="Center_Content" id="div2_1" style="display: block">
                <div class="Create_Recipe">
                    <div class="left_CR">
                        <div class="Recipe_0206_nonpic">
                            <h1 style="height: 26px; width: 178px; overflow: hidden; line-height: 9999px; background: url(../../Images/yyzslb.gif) no-repeat;
                                margin-top: 1px;">
                                <a href="#rhis">12</a></h1>
                            <div style="width: 176px; border: 1px solid #054c52; border-top: none; border-bottom: none;
                                padding-top: 5px;">
                                <asp:TreeView Style="height: 350px; padding: 0px 0px 0px 10px; overflow: scroll;"
                                    ID="TreeView1" runat="server" Width="166px" ExpandDepth="1" OnSelectedNodeChanged="TreeView1_SelectedNodeChanged"
                                    BackColor="White" BorderColor="White" NodeIndent="10">
                                    <NodeStyle HorizontalPadding="6px" />
                                    <SelectedNodeStyle BackColor="#FCA402" />
                                </asp:TreeView>
                                <div class="soso_lt_div">
                                    <table cellpadding="0" cellspacing="0" border="0">
                                        <tr>
                                            <td height="40" valign="middle" width="150" align="center">
                                                <asp:TextBox ID="txtSearch" runat="server" Width="140px" CssClass="input_bg"></asp:TextBox>
                                            </td>
                                            <td align="left" valign="middle">
                                                <asp:Button ID="Button3" runat="server" Text="" Style="margin: 0px;" CssClass="button_soso_lt"
                                                    OnClick="Button3_Click" />
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                                <div class="soso_lt">
                                <%if (Catering.Toolss.IsVerification(Session["RoleID"].ToString(), "yyjsh.aspx", "操作"))
                                  { %>
                                    <a href="#" class="add_botton" onclick='AddNew()'>
                                        <img alt="" src="../../Images/add.gif" /></a> <a href="#" class="add_botton">
                                            <asp:ImageButton ID="ImageButton1" OnClientClick="return confirm( '确定删除? ')" runat="server"
                                                ImageUrl="~/Images/delt_img.gif" OnClick="ImageButton1_Click" /></a>
                                <%}
                                  else
                                  { %>
                                  
                                <%} %>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="Right_CR" style="position:relative;">
                        <table cellpadding="0" width="100%" cellspacing="0" align="right" border="0" style="padding:0px; margin:0px; overflow:hidden;">
                            <tr>
                                <td>
                                    <table cellpadding="0" width="100%" cellspacing="0" border="0">
                                        <tr>
                                            <td align="center">&nbsp;
                                                <asp:Label CssClass="intro_title" runat="server" ID="txtTitle"></asp:Label>                                
                                            </td>
                                            <td width="80" align="right">
                                            <%if (Catering.Toolss.IsVerification(Session["RoleID"].ToString(), "yyjsh.aspx", "操作"))
                                              { %>
                                                <input type="button" class="input_btn_a" value="编辑" style="margin:0px; padding:0px;" onclick='IntroEdit();' />                                
                                            <%}
                                              else { %>
                                                &nbsp;                             
                                            <%} %>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td height="10" colspan="2">&nbsp;<asp:HiddenField ID="HD_ReadID" runat="server" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <div class="div_txtcontent" runat="server" id="div_content">
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <div class="footer">
            <strong>中海油能源发展配餐服务公司渤海自营油田作业公司&nbsp;&nbsp;版权所有@CopyRight 2012</strong><span>技术支持：北京天择嘉业科技有限公司</span>
    </div>
    <!--弹出层-->
    <div id="div_bg" class="bg">
    </div>
    <div id="div_main" class="center_div" style="width: 900px; height: 446px; padding: 0px;
        left: 43%; margin-top: -100px">
        <asp:UpdatePanel ID="UpdatePanel2" runat="server">
            <ContentTemplate>
                <table width="100%" cellpadding="0" cellspacing="0" border="0">
                    <tr style="background-color:#E5F1FD;">
                        <td align="right" width="65" height="34" style="border-bottom:1px solid #C2DEF6;">标　题：</td>
                        <td width="300" style="border-bottom:1px solid #C2DEF6;"><asp:TextBox ID="txt_div_Title" runat="server" CssClass="input_bg" Height="24px" Width="300px"></asp:TextBox></td>
                        <td width="65" align="right" style="border-bottom:1px solid #C2DEF6;">父目录：</td>
                        <td width="200" style="border-bottom:1px solid #C2DEF6;">
                            <asp:DropDownList ID="DropDownList1" CssClass="select_input_bg" runat="server">
                            </asp:DropDownList>
                        </td>
                        <td style="border-bottom:1px solid #C2DEF6;">&nbsp;<asp:HiddenField ID="HD_Edit" runat="server" />
                        </td>
                        <td width="100" align="right" style="border-bottom:1px solid #C2DEF6;">
                            <asp:Button ID="Button1" runat="server" CssClass="input_btn_a" OnClick="Button1_Click" Text="提交修改" />
                        </td>
                        <td width="100" align="right" style="border-bottom:1px solid #C2DEF6;">
                            <input type="button" class="input_btn_a" value="关 闭" onclick='divhidel("div_bg","div_main")' />
                        </td>
                        <td width="10" style="border-bottom:1px solid #C2DEF6;">&nbsp;</td>
                    </tr>
                    <tr>
                        <td colspan="8" align="center">
                            <textarea name="content" id="txtContent" rows="12" cols="100" runat="server"></textarea>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="7" height="20" valign="middle">
                            <asp:Label ID="lblMes" runat="server" Text="" style="vertical-align:middle; margin-left:10px;"></asp:Label>
                        </td>
                    </tr>
                </table>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    </form>
</body>
</html>
<script type="text/javascript">self.parent.frames["topFrame"].ddClass(3);</script>
